<?php
namespace Home\Controller;
use Think\Controller;
class LoginController extends Controller {
    public function index(){
    	$name = 90;
    	$this->assign('xbs',$name);
        $this->display(); 
    }

    public function test()
    {
    	$data = M('user')->select();

    	var_dump($data);
  //   	$User = M("user"); // 实例化User对象
		// $data['nickname'] = 'ThinkPHP';
		// $data['email'] = 'ThinkPHP@gmail.com';
		// $User->add($data);
    }
}